/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.search;

import java.io.Serializable;

/**
 * <p>Hit - result item of the search</p>
 *
 * <p><a href="Hit.java.html"><i>View Source</i></a></p>
 * <p/>
 *
 * @author Andrey Grebnev <a href="mailto:andrey.grebnev@blandware.com">&lt;andrey.grebnev@blandware.com&gt;</a>
 * @version $Revision: 1.10 $ $Date: 2006/03/16 11:09:39 $
 */
public class Hit implements Serializable {

	private String uri;
    private String originalUri;
	private String title;
	private String modified;
    private String summary;
	private String highlightedText;
    private String type;
    private String locale;
	private int score;

    /**
     * Returns URI of hit
     *
     * @return URI
     */
	public String getUri() {
		return uri;
	}

    /**
     * Sets URI of hit
     *
     * @param uri URI to set
     */
	public void setUri(String uri) {
		this.uri = uri;
	}

    /**
     * Returns original URI of hit
     *
     * @return original URI
     */
    public String getOriginalUri() {
        return originalUri;
    }

    /**
     * Sets original URI of hit
     *
     * @param originalUri original URI to set
     */
    public void setOriginalUri(String originalUri) {
        this.originalUri = originalUri;
    }

    /**
     * Returns hit title
     *
     * @return hit title
     */
	public String getTitle() {
		return title;
	}

    /**
     * Sets hit title
     *
     * @param title hit title to set
     */
	public void setTitle(String title) {
		this.title = title;
	}

    /**
     * Returns last modified time/date
     *
     * @return last modified time/date
     */
	public String getModified() {
		return modified;
	}

    /**
     * Sets last modified time/date
     *
     * @param modified last modified time/date to set
     */
	public void setModified(String modified) {
		this.modified = modified;
	}

    /**
     * Returns summary
     *
     * @return summary
     */
    public String getSummary() {
        return summary;
    }

    /**
     * Sets summary
     *
     * @param summary summary to set
     */
    public void setSummary(String summary) {
        this.summary = summary;
    }

    /**
     * Returns highlighted text
     *
     * @return highlighted text
     */
	public String getHighlightedText() {
		return highlightedText;
	}

    /**
     * Sets highlighted text
     *
     * @param highlightedText highlighted text to set
     */
	public void setHighlightedText(String highlightedText) {
		this.highlightedText = highlightedText;
	}

    /**
     * Returns type
     *
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * Sets type
     *
     * @param type type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * Get the locale (language) of current hit (document)
     * @return language code
     */
    public String getLocale() {
        return locale;
    }

    /**
     * Set the locale (language) of current hit (document)
     * @param locale current hit locale
     */
    public void setLocale(String locale) {
        this.locale = locale;
    }

    /**
     * Returns hit score (characteristic that allows to sort hits by their
     * relevance)
     *
     * @return hit score
     */
	public int getScore() {
		return score;
	}

    /**
     * Sets hit score (characteristic that allows to sort hits by their
     * relevance)
     *
     * @param score hit score to set
     */
	public void setScore(int score) {
		this.score = score;
	}

}
